package com.atguigu.spring5.bean1.collectiontype;

//课程
public class Course {
    private String name;


    // 默认toString打印的指针
    // 这里重写为输出对象内容
    @Override
    public String toString() {
        return "Course{" +
                "name='" + name + '\'' +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

}
